module.exports = app => {
  const { controller, middleware, router } = app;

  router.get('获取审批列表', '/product/approval/list', middleware.jwt(), controller.approval.list);
  router.get('获取审批详情', '/product/approval/info', middleware.jwt(), controller.approval.info);
  router.post('新增审批', '/product/approval/insert', middleware.jwt(), controller.approval.insert);
  router.get('拒绝审批', '/product/approval/refuse', middleware.jwt(), controller.approval.refuse);
  router.get('同意审批', '/product/approval/pass', middleware.jwt(), controller.approval.pass);

};
